#ifndef _PLANE_
#define _PLANE_

#include <iostream>
#include <sstream>
#include <iomanip>
#include <fstream>

class Plane
{
public:
	std::string logLine() const;
	std::string callNumber() const;
	std::string model() const;
	std::string type() const;
	std::string rg() const;
	std::string hp() const;
	std::string tw() const;
	std::string firstDate() const;
	std::string lastDate() const;
	double flights() const; 
	double dayHours() const;
	double nightHours() const;        
	double ifr() const;
	double gad() const;
	double xc() const;
	double cfi() const;
	double dual() const;
	double pic() const;
	double sic() const;
	double safety() const;

	//void setPlane(std::string new_logLine, std::string newType, std::string newModel, std::string newCallnum, std::string newRg, std::string newHp, std::string newTw);

	//void addLogEntry(std::string Date, double newHours, double newNight, double newIfr, double newGad, double newXc, double newCfi,
	//				double newDual, double newPic, double newSic, double newSft);

	Plane();
	Plane(std::istringstream& planes_file);
	~Plane();

private:
	std::string _logLine;
	std::string _callNumber;
	std::string _model;
	std::string _type;
	std::string _rg;
	std::string _hp;
	std::string _tw;
	std::string _firstDate;
	std::string _lastDate;
	double _flights;
	double _dayHours;
	double _nightHours;
	double _ifr;
	double _gad;
	double _xc;
	double _cfi;
	double _dual;
	double _pic;
	double _sic;
	double _sft;
};

#endif